
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
 
namespace MaxLeaf.Platform.DataContract
{
    [Serializable]
    [DataContract]
    [CommonsLib.ORM.DataTable(DBName = "MaxleafSCPBase", TableName = "goods_gallery", KeyPropName = "Key", ForeignKeyPropName = "ForeignKey")]
    public class goods_galleryDataModel : BaseDataModel
    {
        [DataMember]
        [CommonsLib.ORM.DataField("gallery_id", true)]
        public int Key {get;set;}

        [DataMember]
        [CommonsLib.ORM.DataField("goods_id", "int", 4)]
        public int ForeignKey { get; set; }

        [DataMember]
        [CommonsLib.ORM.DataField("attr_v_id", "int", 4)]
        public int attr_v_id {get;set;}

        [DataMember]
        [CommonsLib.ORM.DataField("img_url", "nvarchar", 255)]
        public string img_url {get;set;}

        [DataMember]
        [CommonsLib.ORM.DataField("is_main_img", "bit", 1)]
        public bool is_main_img {get;set;}

        [DataMember]
        [CommonsLib.ORM.DataField("extension", "nvarchar", 6)]
        public string extension {get;set;}

        [DataMember]
        [CommonsLib.ORM.DataField("gallery_desc", "nvarchar", 255)]
        public string gallery_desc {get;set;}

        [DataMember]
        [CommonsLib.ORM.DataField("create_time", "int", 8)]
        public int create_time { get; set; }


        public override string ToString()
        {
            return string.Format("{0}.{1}", "goods_gallery", this.Key);
        }
    }
}
            